<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
	<input type="hidden" id="codeUrl" th:value="${codeUrl}">
		<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
		<script type="text/javascript">
	    	$(function(){
	    		var message = $("#codeUrl").val();
		    	document.location.href = message;
	        })
		</script>
</body>
</html>